﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace dsjsports
{
    public class Protocol
    {
        public Protocol(string Name, string Class, string Rang)
        {
            this.name = Name;
            this.classs = Class;
            this.rang = Rang;
        }
        private static ObservableCollection<StaffAndResult> staffAndResultCollection = new ObservableCollection<StaffAndResult>();
        public ObservableCollection<StaffAndResult> StaffAndResultCollection
        {
            get { return staffAndResultCollection; }
        }

        public void Add(StaffAndResult staff)
        {
            staffAndResultCollection.Add(staff);
        }

        public void Remove(StaffAndResult staff)
        {
            staffAndResultCollection.Remove(staff);
        }

        private string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private string classs;
        public string Class
        {
            get { return classs; }
            set { classs = value; }
        }

        private string rang;
        public string Rang
        {
            get { return rang; }
            set { rang = value; }
        }
    }
}
